.block-visual-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  
  .ant-tabs-content-holder {
    flex: 1;
    overflow-y: auto;
  }

  .parameter-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fafafa;
    
    &:hover {
      border-color: #d9d9d9;
      background: #f5f5f5;
    }

    .parameter-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      
      h4 {
        margin: 0;
        color: #262626;
        font-size: 14px;
        font-weight: 600;
      }
    }
  }

  .dropdown-option-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
    
    .ant-input {
      flex: 1;
    }
  }

  .block-preview-container {
    min-height: 200px;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    app-block-item {
      display: block;
      width: 100%;
      height: 100%;
    }
  }

  .json-preview {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    max-height: 400px;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .action-buttons {
    margin-top: 16px;
    text-align: right;
    
    .ant-btn + .ant-btn {
      margin-left: 8px;
    }
  }

  .add-argument-btn {
    margin-bottom: 16px;
  }

  .empty-state {
    text-align: center;
    color: #999;
    padding: 32px;
    
    .ant-empty-description {
      color: #999;
    }
  }

  // 表单样式优化
  .ant-form-item {
    margin-bottom: 16px;
    
    .ant-form-item-label {
      padding: 0;
      
      > label {
        font-size: 13px;
        color: #595959;
        font-weight: 500;
      }
    }
  }

  // 颜色输入特殊样式
  input[type="color"] {
    width: 100%;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    
    &:hover {
      border-color: #40a9ff;
    }
    
    &:focus {
      border-color: #1890ff;
      box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
      outline: 0;
    }
  }

  // 开关和选择器组合样式
  .switch-select-combo {
    display: flex;
    align-items: center;
    gap: 8px;
    
    .ant-select {
      flex: 1;
      min-width: 120px;
    }
  }

  // 卡片样式优化
  .ant-card {
    .ant-card-head {
      min-height: 48px;
      
      .ant-card-head-title {
        font-size: 14px;
        font-weight: 600;
      }
    }
    
    .ant-card-body {
      padding: 16px;
    }
  }

  // Tab 样式优化
  .ant-tabs {
    height: 100%;
    
    .ant-tabs-content {
      height: calc(100% - 46px);
      overflow-y: auto;
    }
    
    .ant-tabs-tabpane {
      height: 100%;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .block-visual-editor {
    .parameter-item {
      padding: 12px;
    }
    
    .dropdown-option-item {
      flex-direction: column;
      gap: 4px;
      
      .ant-input {
        width: 100%;
      }
    }
  }
}
